<?php $this->pageTitle= UserModule::t('Update User').' - '.Yii::app()->name;?>
<?php $this->beginWidget('webroot.widgets.iButtonBar');?>

<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>Yii::t('main','Save'),
    'type'=>'success',
	'icon'=>'ok-sign white',
    'url'=> 'javascript:void(0);',
	'htmlOptions'=>array('onclick'=>'jQuery("#user-form").submit();')
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>Yii::t('main', 'Save & Continue'),
    'type'=>'primary',
	'icon'=>'ok white',
    'url'=> 'javascript:void(0);',
	'htmlOptions'=>array('onclick'=>'if(jQuery("#apply").attr("value",1)) jQuery("#user-form").submit();')
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>UserModule::t('View User'),
    'type'=>'primary',
    'icon'=>'eye-open white',
    'url'=> array('view', 'id'=>$model->id),
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>UserModule::t('Delete User'),
    'type'=>'danger',
    'icon'=>'remove-sign white',
    'url'=> '#',
	'htmlOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>UserModule::t('Are you sure to delete this item?'))
));?>
<?php $this->endWidget();?>

<?php $this->beginWidget('webroot.widgets.iPortlet', array('title'=>UserModule::t('Update User #').$model->id));?>
<?php
	echo $this->renderPartial('_form', array('model'=>$model,'profile'=>$profile));
?>
<?php $this->endWidget();?>